<?php




return [
    /*
     *  status
     * */
    'status' => [
        [ 'id' => 0, 'name' => '未处理'],
        [ 'id' => 1, 'name' => '有效'],
        [ 'id' => 2, 'name' => '关机'],
        [ 'id' => 3, 'name' => '未接通'],
        [ 'id' => 4, 'name' => '空号（停机）'],
        [ 'id' => 5, 'name' => '拒接'],
        [ 'id' => 6, 'name' => '中途挂断'],
        [ 'id' => 7, 'name' => '中介'],
        [ 'id' => 8, 'name' => '已购房'],
        [ 'id' => 9, 'name' => '不买房（无效）']
    ],
    'purpose' => [
        [ 'id' => 1, 'name' => '需求明确 购房条件清晰'],
        [ 'id' => 2, 'name' => '需求范围广 购房条件清晰但不优质'],
        [ 'id' => 3, 'name' => '无明确购房范围 需求或不清晰'],
    ],
    'use' => [
        [ 'id' => 0, 'name' => '未知'],
        [ 'id' => 1, 'name' => '首套自住'],
        [ 'id' => 2, 'name' => '投资'],
        [ 'id' => 3, 'name' => '换房'],
        [ 'id' => 4, 'name' => '婚房'],
    ],
    /*
     * 城市
     * */
    'cities' => [
        [
            "city_id"=> 1,
            "name_cn"=> "北京",
            "name_en"=> "bj",
            "name_pinyin" => "beijing"
        ],
        [
            "city_id"=> 2,
            "name_cn"=> "上海",
            "name_en"=> "sh",
            "name_pinyin" => "shanghai"
        ],
        [
            "city_id"=> 3,
            "name_cn"=> "深圳",
            "name_en"=> "sz",
            "name_pinyin" => "shenzhen"
        ],
        [
            "city_id"=> 6,
            "name_cn"=> "南京",
            "name_en"=> "nj",
            "name_pinyin" => "nanjing"
        ],
        [
            "city_id"=> 7,
            "name_cn"=> "天津",
            "name_en"=> "tj",
            "name_pinyin" => "tianjin"
        ],
        [
            "city_id"=> 10,
            "name_cn"=> "沈阳",
            "name_en"=> "sy",
            "name_pinyin" => "shenyang"
        ],
        [
            "city_id"=> 16,
            "name_cn"=> "广州",
            "name_en"=> "gz",
            "name_pinyin" => "guangzhou"
        ],
        [
            "city_id"=> 21,
            "name_cn"=> "哈尔滨",
            "name_en"=> "heb",
            "name_pinyin" => "haerbin"
        ],
        [
            "city_id"=> 22,
            "name_cn"=> "长沙",
            "name_en"=> "cs",
            "name_pinyin" => "changsha"
        ],
        [
            "city_id"=> 20,
            "name_cn"=> "西安",
            "name_en"=> "xa",
            "name_pinyin" => "xian"
        ]
    ],


    /*
     * user validator
     * */
    'user' => [
        'rules' => [
            'name' => 'required|min:3',
            'password' => 'required|min:6'
        ],
        'message' => [
            'name.required'=>'用户名不能为空！',
            'name.min:3'=>'用户名最小三位数！',
            'password.required'=>'密码不能为空！',
            'password.min6'=>'密码最少六位！'
        ]
    ],
    'tourist' => [
        'rules' => [
            'house_room' => 'numeric',
            'price' => 'numeric',
            'area' => 'numeric'
        ],
        'message' => [
            'house_room.numeric' => '居室必须填写数字',
            'price.numeric' => '价格必须填写数字',
            'area.numeric' => '面积必须填写数字'
        ]
    ],

    /*
     * menu validator
     * */
    'menu' => [
        'rules' => [
            'name' => 'required'
        ],
        'message' => [
            'name.required'=>'菜单名不能为空！',
        ]
    ],

    /*
     * role validator
     * */
    'role' => [
        'rules' => [
            'name' => 'required'
        ],
        'message' => [
            'name.required'=>'职位名不能为空！',
        ]
    ],

    /*
     * operation errors
     * */
    'errors' => [
        'createFail' => '创建失败，请稍后重试',
        'editFail' => '更新失败，请稍后重试',
        'repeat' => '已存在，不能添加',
        'roleFail' => '权限验证失败，请联系管理员',
        'phoneNeed' => '手机号必须要存在',
        'touristprofileFail' => '用户画像保存失败'
    ],
    'success' =>[
        'operate' => '操作成功',
        'update' => '更新成功',
        'updateTourist' => '提交客源日志成功',
        'touristprofileSuccess' => '用户画像保存成功'
    ],


    /*
     *
     * */

    'templates' => [
        'login' => [
            'name' => '用户登录',
            'mark_tpl' => '{user_name}登录了后台',
            'tips'=> ''
        ],
        'logout' => [
            'name' => '用户登出',
            'mark_tpl' => '{user_name}登出了后台',
            'tips'=> ''
        ],
        'create_user' => [
            'name' => '创建新用户',
            'mark_tpl' => '{user_name}创建了新用户[{target_id}]{new_name}',
            'tips'=> ''
        ],
        'edit_user' => [
            'name' => '更新用户信息',
            'mark_tpl' => '{user_name}更新了用户[{target_id}]{target_name};',
            'tips' => '{key}:{old_value}-->{new_value};'
        ],
        'remove_user' => [
            'name' => '删除用户',
            'mark_tpl' => '{user_name}删除了用户[{target_id}]{new_name};',
            'tips' => ''
        ],
        'add_tourist_action' => [
            'name' => '添加客源日志',
            'mark_tpl' => '{user_name}添加了客源日志;',
            'tips' => '{ids};'
        ],
        'remove_tourist_action' => [
            'name' => '删除客源日志',
            'mark_tpl' => '{user_name}删除了客源日志[{target_id}]{new_name};',
            'tips' => ''
        ],
        'edit_tourist' => [
            'name' => '更新客源',
            'mark_tpl' => '{user_name}更新了客源[{target_id}]{target_name};',
            'tips' => '{key}:{old_value}-->{new_value};'
        ],
        'create_menu' => [
            'name' => '创建新菜单',
            'mark_tpl' => '{user_name}创建了新菜单{new_name}',
            'tips'=> ''
        ],
        'edit_menu' => [
            'name' => '更新菜单',
            'mark_tpl' => '{user_name}更新了菜单[{target_id}]{target_name};',
            'tips' => '{key}:{old_value}-->{new_value};'
        ],
        'remove_menu' => [
            'name' => '删除菜单',
            'mark_tpl' => '{user_name}删除了菜单[{target_id}]{new_name};',
            'tips' => ''
        ],
        'create_role' => [
            'name' => '创建新职位',
            'mark_tpl' => '{user_name}创建了新职位{new_name}',
            'tips'=> ''
        ],
        'edit_role' => [
            'name' => '更新职位',
            'mark_tpl' => '{user_name}更新了职位[{target_id}]{target_name};',
            'tips' => '{key}:{old_value}-->{new_value};'
        ],
        'remove_role' => [
            'name' => '删除角色',
            'mark_tpl' => '{user_name}删除了职位[{target_id}]{new_name};',
            'tips' => ''
        ],
        'set_role_menu' => [
            'name' => '设置职位权限',
            'mark_tpl' => '{user_name}设置了职位[{target_id}]{target_name}权限;',
            'tips' => '{new_value};'
        ]
    ]
];